package com.car.dao.custormer;

import com.car.entity.Custormer;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 客户信用记录
 */
@Repository
public interface CustormerCreditReportDao {

    /**
     * 查询所有得客户
     *
     * @param map
     * @return
     */
    List<Custormer> getAllCustomer(Map<String, Object> map);

    /**
     * 查询总条数
     *
     * @param map
     * @return
     */
    Integer getAllCustomerCount(Map<String, Object> map);

    /**
     * 根据id获取
     * @param custormerId
     * @return
     */
    Custormer getCustomerById(int custormerId);


    /**
     * 修改信用值
     * @param custormer
     * @return
     */
    Integer updateCustomerCredit(Custormer custormer);

}
